<?php /* Smarty version 2.6.16, created on 2011-10-29 16:14:35
         compiled from appointycalendar.tpl */ ?>
<?php echo '
<script language="javascript" src="js/contact_us.js"></script>
<script language="javascript">
var $ = jQuery.noConflict();

function CheckFields()
{
  
 
   if(document.getElementById(\'calendar_code\').value==\'\')
   {
    $(\'#FormErrorMsg\').show();
    $(\'#FormErrorMsg\').html("Please enter your calendar link");
	//$(\'#FormErrorMsg\').fadeOut(2000);
    return false;
   }
  
  return true;
 
}
</script>
'; ?>

 <div class="right-panel">
       <h1 title="Appointy Calendar"><span>Appointy Calendar</span></h1>
      <div class="clear"></div>
	   <?php echo $this->_tpl_vars['CmsArr']['cms_description']; ?>

	   <div class="register">
	  <div id='FormErrorMsg' style="color:red; text-align:left; padding-bottom:10px; padding-left:100px;"><?php if ($this->_tpl_vars['ermsg'] != ''): ?> <?php echo $this->_tpl_vars['ermsg'];  endif; ?> </div>
      <form name="contact" id="contact" method='post'>
	    <fieldset>
            <label>Calendar Link :</label>
           <input type="text" name="calendar_code" id="calendar_code" class="con-req" value="<?php echo $this->_tpl_vars['Formval']['calendar_code']; ?>
" style="width:200px;"/>
           
			<label>Active Calendar :</label>
            <input type="checkbox" name="active_calendar" id="active_calendar" value="Y" <?php if ($this->_tpl_vars['Formval']['active_calendar'] == 'Y'): ?>checked<?php endif; ?> />
            <p class="clear"></p>
            <label>&nbsp;</label>
            <input name="submit" class="submit" value="Edit" type="submit" onclick='return CheckFields()' />
            <input name="" class="cancel" value="Cancel" type="button" onclick="window.location.href='profile.php'" />
         </fieldset>
      </form>
      </div>
      <div class="clear"></div>
   </div>